Next | Prev | Up | Top | Contents | Index

Using Data Types

Data types and sizes are listed in Table 7-1.

Data Types and Sizes
Data Type32 Bit64 Bit
char 88
short 1616
int3232
long3264
long long 6464
pointer3264
float3232
double6464
long double*64128
void*3264

Note that in 64-bit mode, types long and int have different sizes and ranges; a long always has the same size as a pointer. A pointer (or address) has 64-bit representation in 64-bit mode and 32-bit representation in 32-bit mode. An int has a smaller range than a pointer in 64-bit mode.

Characteristics of integral types and floating point types are defined in the standard files limits.h and float.h.


Next | Prev | Up | Top | Contents | Index